package com.market.mapper;

import com.market.entity.CommercialSupplier;
import com.market.entity.CommercialTenant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommercialSupplierMapper {
    /**
     * 新增供应商
     *
     * @param commercialSupplier
     * @return
     */
    int insert(@Param("commercialSupplier") CommercialSupplier commercialSupplier);

    /**
     * 删除
     * @param commercialSupplierId
     * @return
     */
    int delect(@Param("commercialSupplierId") Long commercialSupplierId);

    /**
     * 查询所有供应商信息
     *
     * @return
     */
    List<CommercialSupplier> selects();

    /**
     * 查询供应商名称
     * @return
     */
    List<CommercialSupplier> selectName();
}
